#include <iostream>
#include <vector>

int main()
{
    int M, N;
    std::cin >> M >> N;

    std::vector<int> vs;
    for (int i = 0; i < M; i++)
    {
        int v;
        std::cin >> v;
        vs.push_back(v);
    }

    std::vector<float> ts;
    for (int i = 0; i < M; i++)
    {
        float t = (float)N / vs[i];
        ts.push_back(t);
    }

    for (int i = 1; i < M; i++)
    {
        if (ts[i] + i < ts[i - 1])
        {
            ts[i] = ts[i - 1];
        }
        else
        {
            ts[i] += i;
        }
    }

    float tm = ts[M - 1] - (M - 1);
    if (((int)tm) == tm)
    {
        std::cout << (int)tm << std::endl;
    }
    else
    {
        std::cout << tm << std::endl;
    }
    return 0;
}